package edu.whu.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;

@Entity(name="t_supplier")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Supplier {
    @Id
    Integer id;
    String name;
    @Column(name = "product_id")
    Integer productId;

    public Supplier(String name, Integer productId) {
        this.name = name;
        this.productId = productId;
    }
}
